/*
 * @Descripttion:
 * @version: 1.0
 * @Author: 张泽涛
 * @LastEditors: 张泽涛
 * @LastEditTime: 2021-02-24 20:19:06
 */
export default function createRoute (record, path) {
  const matched = []
  while (record) {
    matched.unshift(record)
    record = record.parentRecord
  }
  return {
    path,
    matched
  }
}
